import Ajax from "@/assets/js/common/ajax";


//图形验证码
export const GetCaptchaGetCode=(params,success,fail)=>{
    Ajax(`/admin/captcha/get/code`,params,success,fail,"GET");
};

    //登录
export const UpdataLogin=(params,success,fail)=>{
        Ajax(`/user/login`,params,success,fail,"POST");
    };

//退出登录
export const UpdataUserLogout=(params,success,fail)=>{
    Ajax(`/user/logout`,params,success,fail,"GET");
};

 //修改密码
export const UpdatePassword=(params,success,fail)=>{ 
    Ajax(`/dolphin-auth/management/oauth/logout`,params,success,fail,"GET");
}

//获取当前登录用户信息
export const Query=(params,success,fail)=>{
    Ajax(`/dolphin-auth/management/oauth/logout`,params,success,fail,"GET");
}

export const Download=(params,success,fail)=>{
    Ajax(`/dolphin-auth/management/oauth/current/user/${params.id}`, {responseType: "blob"},success,fail,"GET");
}

